package com.bigfish.gbs.service.impl;


import com.bigfish.gbs.dao.CategoryMapper;
import com.bigfish.gbs.entity.Category;
import com.bigfish.gbs.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author Joycessh
 * @Description
 * @Date 12/21/18 11:28 PM
 */
@Service("CategoryService")
public class CategoryServiceImpl implements CategoryService {

    @Autowired
    private CategoryMapper categoryMapper;

    @Override
    public List<Category> getCategory() {
        return categoryMapper.select();
    }
}
